<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>

<%
	String contextPath = request.getContextPath();
	String path = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort() + contextPath;

%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/index.jsp"%>
<!DOCTYPE html>
<html>
   <head>
      <title>亲人列表</title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <!-- 引入 Bootstrap -->
     <link rel="stylesheet" type="text/css" href="<%=path %>/assets/css/bootstrap.min.css">
      <link rel="stylesheet" type="text/css" href="<%=path %>/assets/css/weixin_main.css">
     
     <style>
	 img{
		 width:40px;
		 height:40px;
	 }
	 .box{width:100%;}
.weixin-btn{margin:0 auto;display:block;}
	 </style>
     
     
     
     <script>
function open_win() {
	window.open("http://baidu.com", "newwindow", "toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, status=yes");
}


</script>
</head>
<body>
<br/>
<br/>
<div class="box">
<button type="button" class="weixin-btn " onclick="open_win()" >添加亲人</button>
 </div>
 <br/>
<table class="table table-condensed">
	<caption>亲人列表</caption>
	<thead>
		<tr>
			<th>姓名</th>
			<th>性别</th>
			<th>头像</th>
		</tr>
	</thead>
	
	
	<tbody>
	<c:forEach  var="relative" items="${relatives}"
								varStatus="status">
		
		<tr>
			<td><a href="http://baidu.com">${relative.relative_firstName}${relative.relative_lastName}</a></td>
			<td onclick="open_win()">${relative.relative_sex}</td>
			<td><img src="${t_virtualpath}/admin/icon?id=${relative.relativeId}" class="img-square"/></td>
		</tr>
	
		</c:forEach>
		
	</tbody>
</table>
<!-- Scripts -->
	<script src="../../../../assets/js/jquery.min.js"></script>
	<script src="../../../../assets/js/jquery.scrollex.min.js"></script>
	<script src="../../../../assets/js/jquery.scrolly.min.js"></script>
	<script src="../../../../assets/js/skel.min.js"></script>
	<script src="../../../../assets/js/util.js"></script>
</body>

</html>














